package qyweix;

import java.util.List;

import javax.activation.DataSource;
import javax.annotation.Resource;

import org.junit.AfterClass;
import org.junit.runner.RunWith; 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.wxcms.domain.DodemWxCpUser;
import com.wxcms.mapper.WxCpUserDao;

import me.chanjar.weixin.cp.bean.WxCpUser;
import org.junit.Test;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath:applicationContext.xml"}) 
public class mytest {
	
	@Resource(name = "dataSource")
	private DataSource			dataSource;
	@Autowired
	 WxCpUserDao wxUserDao;

	@Test
	public void test() {

		  List<DodemWxCpUser> lu= wxUserDao.checkUser("hxd_dxh");
			System.out.println("Not yet implemented"+lu.size());
	       if(lu.size()>0){
	    	    WxCpUser usr = lu.get(0); 
	    	    System.out.println("eeeeeeeeeewwwwwwwwwwwwwwwww"+usr.toJson());
		        System.out.println("Not yet implemented");
	      }   
	}
	
	 @AfterClass

	 public static void testAfterClass() {
		
	  System.out.println("public static void testAfterClass()");

	 }

}
